<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		var url = "http://www.52pojie.cn/index.txt";
		function getExtisionName(url) {
			var  pos = url.lastIndexOf(".");
			return url.substr(pos);
		}
		var name = getExtisionName(url);
		document.write(name);
		 
	</script>
</body>
</html>